﻿
using FireStarterModeller.BO;

namespace FireStarterModeller.Test.BO
{
    public partial class TestUtilsDMListItem
    {
        /// <summary>
        /// Creates a new unsaved DMListItem with a random value assigned to every property
        /// </summary>
        public static DMListItem CreateUnsavedValidDMListItem()
        {
            DMLookupListSimple list = TestUtilsDMLookupListSimple.GetBuilder()
                 .CreateValidBusinessObject();

            DMListItem dMListItem = new DMListItem();
            dMListItem.Value = TestUtilsShared.GetRandomString();
            dMListItem.Display = TestUtilsShared.GetRandomString();
            dMListItem.Generated = TestUtilsShared.GetRandomBoolean();
            dMListItem.LookupListSimple = list;
            return dMListItem;
        }
        /// <summary>
        /// Creates a new unsaved DMListItem with a random value assigned to every property
        /// </summary>
        public static DMListItem CreateUnsavedStandardDMListItem()
        {
            DMListItem dMListItem = new DMListItem();
            dMListItem.Value = "Value";
            dMListItem.Display = "Dispaly";
            dMListItem.Generated = false;
            return dMListItem;
        }
    }
}
